home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000841_romain@pyramid.com_Wed Aug 10 05:30:53 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  2KB

  1. Received: from gossip.pyramid.com by cs.umb.edu with SMTP id AA22973
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 10 Aug 1994 15:28:45 -0400
  3. Received: from shadow.eng.pyramid.com 
  4.     by gossip.pyramid.com (5.61/OSx5.1a Pyramid-Internet-Gateway)
  5.     id AA20930; Wed, 10 Aug 94 12:28:39 -0700
  6. Received: by shadow.eng.pyramid.com (5.61/Pyramid_Internal_Configuration)
  7.     id AA13929; Wed, 10 Aug 94 12:30:53 -0700
  8. Date: Wed, 10 Aug 94 12:30:53 -0700
  9. From: romain@pyramid.com (Romain Kang)
  10. Message-Id: <9408101930.AA13929@shadow.eng.pyramid.com>
  11. To: tex-k@cs.umb.edu
  12. Subject: xdvik-1.8 under Pyramid DC/OSx
  13.  
  14. FYI-
  15.  
  16. I don't know whether this is peculiar to Pyramid DC/OSx (a MIPS/SVR4 platform)
  17. or it may be more widespread.  When building xdvik 1.8, I get:
  18.  
  19. cc  -I. -I/shield/w2/romain/tex/xdvik-1.8/xdvik -I.. -I/shield/w2/romain/tex/xdvik-1.8/xdvik/..  -DBUTTONS   -g  -c dvi_draw.c
  20. "/usr/include/X11/Xfuncs.h", line 37: warning: macro redefined: bcopy
  21. "/usr/include/X11/Xfuncs.h", line 38: warning: macro redefined: bzero
  22. "/usr/include/X11/Xfuncs.h", line 39: warning: macro redefined: bcmp
  23. "dvi_draw.c", line 187: warning: argument mismatch
  24. "dvi_draw.c", line 187: undeclared variable: __va_alist
  25. gnumake: *** [dvi_draw.o] Error 1
  26.  
  27. It seems that c-vararg.h expects __STDC__ to be nonzero if <stdarg.h>
  28. is to be used, but in the DC/OSx case, __STDC__ is 1 only for strict
  29. ANSI mode, and 0 for for ordinary ANSI mode.  This is complicated by
  30. the coexistence of <vararg.h> for old style K&R mode, and <stdarg.h>
  31. for both strict and normal ANSI mode.  (In old K&R mode, __STDC__ is
  32. undefined in DC/OSx).
  33.  
  34. I got around this by changing a line in c-vararg.h from
  35.     #if __STDC__
  36. to
  37.     #ifdef __STDC__
  38.  
  39. I decided not to worry about the macro redefinition warnings.  Also, I
  40. needed to add -lnsl to dvik/Makefile's LOADLIBES in order to correctly
  41. link xdvi.  It seems to work fine...
  42.  
  43. Regards,
  44. Romain Kang                    Pyramid Technology Corp.
  45. romain@pyramid.com                San Jose, California, USA
  46. (not a tex-k list member)